home *** CD-ROM | disk | FTP | other *** search
/ Aminet 15 / Aminet 15 - Nov 1996.iso / Aminet / dev / basic / ace24dist.lha / ace24.lha / include / funcs / exec_funcs.h < prev    next >
C/C++ Source or Header  |  1996-09-10  |  11KB  |  177 lines

  1. #ifndef  FUNCS_EXEC_FUNCS_H
  2. #define  FUNCS_EXEC_FUNCS_H
  3.  
  4. /*
  5. **
  6. ** Function declarations for ACE Basic
  7. **
  8. ** Note: Translated to ACE by Nils Sjoholm
  9. **
  10. ** Date: 11-Oct-95 TO 14-Oct-95
  11. **
  12. */              
  13.  
  14. #ifndef  EXEC_TYPES_H
  15. #include <exec/types.h>
  16. #endif
  17.  
  18. /*------ misc ---------------------------------------------------------*/
  19. DECLARE FUNCTION LONGINT Supervisor(  ADDRESS userFunction ) LIBRARY exec
  20. /*------ special patchable hooks TO internal exec activity ------------*/
  21. /*------ module creation ----------------------------------------------*/
  22. DECLARE FUNCTION InitCode(  LONGINT startClass,  LONGINT version ) LIBRARY exec
  23. DECLARE FUNCTION InitStruct( APTR initTable, APTR memory,  LONGINT _SIZE ) LIBRARY exec
  24. DECLARE FUNCTION STRUCTPTR MakeLibrary( APTR funcInit, APTR structInit, \
  25.                                         ADDRESS libInit,  LONGINT dataSize, LONGINT segList ) LIBRARY exec
  26. DECLARE FUNCTION MakeFunctions( APTR target, APTR functionArray, \
  27.                                 LONGINT funcDispBase ) LIBRARY exec
  28. DECLARE FUNCTION STRUCTPTR FindResident( ADDRESS _NAME ) LIBRARY exec
  29. DECLARE FUNCTION APTR InitResident( STRUCTPTR resident,  LONGINT segList ) LIBRARY exec
  30. /*------ diagnostics --------------------------------------------------*/
  31. DECLARE FUNCTION Alert(  LONGINT alertNum ) LIBRARY exec
  32. DECLARE FUNCTION Debug(  LONGINT flags ) LIBRARY exec
  33. /*------ interrupts ---------------------------------------------------*/
  34. DECLARE FUNCTION Disable() LIBRARY exec
  35. DECLARE FUNCTION Enable() LIBRARY exec
  36. DECLARE FUNCTION Forbid() LIBRARY exec
  37. DECLARE FUNCTION Permit() LIBRARY exec
  38. DECLARE FUNCTION LONGINT SetSR(  LONGINT newSR,  LONGINT mask ) LIBRARY exec
  39. DECLARE FUNCTION APTR SuperState() LIBRARY exec
  40. DECLARE FUNCTION UserState( APTR sysStack ) LIBRARY exec
  41. DECLARE FUNCTION STRUCTPTR SetIntVector( LONGINT intNumber, STRUCTPTR interrupt ) LIBRARY exec
  42. DECLARE FUNCTION AddIntServer( LONGINT intNumber, STRUCTPTR interrupt ) LIBRARY exec
  43. DECLARE FUNCTION RemIntServer( LONGINT intNumber, STRUCTPTR interrupt ) LIBRARY exec
  44. DECLARE FUNCTION Cause( STRUCTPTR interrupt ) LIBRARY exec
  45. /*------ memory allocation --------------------------------------------*/
  46. DECLARE FUNCTION APTR Allocate( STRUCTPTR freeList,  LONGINT byteSize ) LIBRARY exec
  47. DECLARE FUNCTION Deallocate( STRUCTPTR freeList, APTR memoryBlock, \
  48.                              LONGINT byteSize ) LIBRARY exec
  49. DECLARE FUNCTION APTR AllocMem(  LONGINT byteSize,  LONGINT requirements ) LIBRARY exec
  50. DECLARE FUNCTION APTR AllocAbs(  LONGINT byteSize, APTR location ) LIBRARY exec
  51. DECLARE FUNCTION FreeMem( APTR memoryBlock,  LONGINT byteSize ) LIBRARY exec
  52. DECLARE FUNCTION LONGINT AvailMem(  LONGINT requirements ) LIBRARY exec
  53. DECLARE FUNCTION STRUCTPTR AllocEntry( STRUCTPTR entry ) LIBRARY exec
  54. DECLARE FUNCTION FreeEntry( STRUCTPTR entry ) LIBRARY exec
  55. /*------ lists --------------------------------------------------------*/
  56. DECLARE FUNCTION Insert( STRUCTPTR _LIST, STRUCTPTR node, STRUCTPTR pred ) LIBRARY exec
  57. DECLARE FUNCTION AddHead( STRUCTPTR _LIST, STRUCTPTR node ) LIBRARY exec
  58. DECLARE FUNCTION AddTail( STRUCTPTR _LIST, STRUCTPTR node ) LIBRARY exec
  59. DECLARE FUNCTION Remove( STRUCTPTR node ) LIBRARY exec
  60. DECLARE FUNCTION STRUCTPTR RemHead( STRUCTPTR _LIST ) LIBRARY exec
  61. DECLARE FUNCTION STRUCTPTR RemTail( STRUCTPTR _LIST ) LIBRARY exec
  62. DECLARE FUNCTION Enqueue( STRUCTPTR _LIST, STRUCTPTR node ) LIBRARY exec
  63. DECLARE FUNCTION STRUCTPTR FindName( STRUCTPTR _LIST, ADDRESS _NAME ) LIBRARY exec
  64. /*------ tasks --------------------------------------------------------*/
  65. DECLARE FUNCTION APTR AddTask( STRUCTPTR task, APTR initPC, APTR finalPC ) LIBRARY exec
  66. DECLARE FUNCTION RemTask( STRUCTPTR task ) LIBRARY exec
  67. DECLARE FUNCTION STRUCTPTR FindTask( ADDRESS _NAME ) LIBRARY exec
  68. DECLARE FUNCTION LONGINT SetTaskPri( STRUCTPTR task, LONGINT priority ) LIBRARY exec
  69. DECLARE FUNCTION LONGINT SetSignal(  LONGINT newSignals,  LONGINT signalSet ) LIBRARY exec
  70. DECLARE FUNCTION LONGINT SetExcept(  LONGINT newSignals,  LONGINT signalSet ) LIBRARY exec
  71. DECLARE FUNCTION LONGINT _Wait(  LONGINT signalSet ) LIBRARY exec
  72. DECLARE FUNCTION Signal( STRUCTPTR task,  LONGINT signalSet ) LIBRARY exec
  73. DECLARE FUNCTION LONGINT AllocSignal( LONGINT signalNum ) LIBRARY exec
  74. DECLARE FUNCTION FreeSignal( LONGINT signalNum ) LIBRARY exec
  75. DECLARE FUNCTION LONGINT AllocTrap( LONGINT trapNum ) LIBRARY exec
  76. DECLARE FUNCTION FreeTrap( LONGINT trapNum ) LIBRARY exec
  77. /*------ messages -----------------------------------------------------*/
  78. DECLARE FUNCTION AddPort( STRUCTPTR port ) LIBRARY exec
  79. DECLARE FUNCTION RemPort( STRUCTPTR port ) LIBRARY exec
  80. DECLARE FUNCTION PutMsg( STRUCTPTR port, STRUCTPTR _MESSAGE ) LIBRARY exec
  81. DECLARE FUNCTION STRUCTPTR GetMsg( STRUCTPTR port ) LIBRARY exec
  82. DECLARE FUNCTION ReplyMsg( STRUCTPTR  _MESSAGE ) LIBRARY exec
  83. DECLARE FUNCTION STRUCTPTR WaitPort( STRUCTPTR port ) LIBRARY exec
  84. DECLARE FUNCTION STRUCTPTR FindPort( ADDRESS _NAME ) LIBRARY exec
  85. /*------ libraries ----------------------------------------------------*/
  86. DECLARE FUNCTION AddLibrary( STRUCTPTR _LIBRARY ) LIBRARY exec
  87. DECLARE FUNCTION RemLibrary( STRUCTPTR _LIBRARY ) LIBRARY exec
  88. DECLARE FUNCTION STRUCTPTR OldOpenLibrary( ADDRESS libName ) LIBRARY exec
  89. DECLARE FUNCTION CloseLibrary( STRUCTPTR _LIBRARY ) LIBRARY exec
  90. DECLARE FUNCTION APTR SetFunction( STRUCTPTR _LIBRARY, LONGINT funcOffset, \
  91.                                    ADDRESS newFunction ) LIBRARY exec
  92. DECLARE FUNCTION SumLibrary( STRUCTPTR _LIBRARY ) LIBRARY exec
  93. /*------ devices ------------------------------------------------------*/
  94. DECLARE FUNCTION AddDevice( STRUCTPTR device ) LIBRARY exec
  95. DECLARE FUNCTION RemDevice( STRUCTPTR device ) LIBRARY exec
  96. DECLARE FUNCTION LONGINT OpenDevice( ADDRESS devName,  LONGINT unit, \
  97.                                   STRUCTPTR ioRequest,  LONGINT flags ) LIBRARY exec
  98. DECLARE FUNCTION CloseDevice( STRUCTPTR ioRequest ) LIBRARY exec
  99. DECLARE FUNCTION LONGINT DoIO( STRUCTPTR ioRequest ) LIBRARY exec
  100. DECLARE FUNCTION SendIO( STRUCTPTR ioRequest ) LIBRARY exec
  101. DECLARE FUNCTION STRUCTPTR CheckIO( STRUCTPTR ioRequest ) LIBRARY exec
  102. DECLARE FUNCTION LONGINT WaitIO( STRUCTPTR ioRequest ) LIBRARY exec
  103. DECLARE FUNCTION AbortIO( STRUCTPTR ioRequest ) LIBRARY exec
  104. /*------ resources ----------------------------------------------------*/
  105. DECLARE FUNCTION AddResource( APTR resource ) LIBRARY exec
  106. DECLARE FUNCTION RemResource( APTR resource ) LIBRARY exec
  107. DECLARE FUNCTION APTR OpenResource( ADDRESS resName ) LIBRARY exec
  108. /*------ private diagnostic support -----------------------------------*/
  109. /*------ misc ---------------------------------------------------------*/
  110. DECLARE FUNCTION APTR RawDoFmt( ADDRESS formatString, APTR dataStream, ADDRESS putChProc, \
  111.                                 APTR putChData ) LIBRARY exec
  112. DECLARE FUNCTION LONGINT GetCC() LIBRARY exec
  113. DECLARE FUNCTION LONGINT TypeOfMem( APTR _ADDRESS ) LIBRARY exec
  114. DECLARE FUNCTION LONGINT Procure( STRUCTPTR sigSem, \
  115.                                   STRUCTPTR bidMsg ) LIBRARY exec
  116. DECLARE FUNCTION Vacate( STRUCTPTR sigSem, \
  117.                          STRUCTPTR bidMsg ) LIBRARY exec
  118. DECLARE FUNCTION STRUCTPTR OpenLibrary( ADDRESS libName,  LONGINT version ) LIBRARY exec
  119. /*--- functions in V33 OR higher (Release 1.2) ---*/
  120. /*------ signal semaphores (note funny registers)----------------------*/
  121. DECLARE FUNCTION InitSemaphore( STRUCTPTR sigSem ) LIBRARY exec
  122. DECLARE FUNCTION ObtainSemaphore( STRUCTPTR sigSem ) LIBRARY exec
  123. DECLARE FUNCTION ReleaseSemaphore( STRUCTPTR sigSem ) LIBRARY exec
  124. DECLARE FUNCTION LONGINT AttemptSemaphore( STRUCTPTR sigSem ) LIBRARY exec
  125. DECLARE FUNCTION ObtainSemaphoreList( STRUCTPTR sigSem ) LIBRARY exec
  126. DECLARE FUNCTION ReleaseSemaphoreList( STRUCTPTR sigSem ) LIBRARY exec
  127. DECLARE FUNCTION STRUCTPTR FindSemaphore( ADDRESS sigSem ) LIBRARY exec
  128. DECLARE FUNCTION AddSemaphore( STRUCTPTR sigSem ) LIBRARY exec
  129. DECLARE FUNCTION RemSemaphore( STRUCTPTR sigSem ) LIBRARY exec
  130. /*------ kickmem support ----------------------------------------------*/
  131. DECLARE FUNCTION LONGINT SumKickData() LIBRARY exec
  132. /*------ more memory support ------------------------------------------*/
  133. DECLARE FUNCTION AddMemList(  LONGINT _SIZE,  LONGINT attributes, LONGINT pri, \
  134.                               APTR _BASE, ADDRESS _NAME ) LIBRARY exec
  135. DECLARE FUNCTION CopyMem( APTR source, APTR dest,  LONGINT _SIZE ) LIBRARY exec
  136. DECLARE FUNCTION CopyMemQuick( APTR source, APTR dest,  LONGINT _SIZE ) LIBRARY exec
  137. /*------ cache --------------------------------------------------------*/
  138. /*--- functions in V36 OR higher (Release 2.0) ---*/
  139. DECLARE FUNCTION CacheClearU() LIBRARY exec
  140. DECLARE FUNCTION CacheClearE( APTR _ADDRESS,  LONGINT length,  LONGINT caches ) LIBRARY exec
  141. DECLARE FUNCTION LONGINT CacheControl(  LONGINT cacheBits,  LONGINT cacheMask ) LIBRARY exec
  142. /*------ misc ---------------------------------------------------------*/
  143. DECLARE FUNCTION APTR CreateIORequest( STRUCTPTR port,  LONGINT _SIZE ) LIBRARY exec
  144. DECLARE FUNCTION DeleteIORequest( APTR iorequest ) LIBRARY exec
  145. DECLARE FUNCTION STRUCTPTR CreateMsgPort() LIBRARY exec
  146. DECLARE FUNCTION DeleteMsgPort( STRUCTPTR port ) LIBRARY exec
  147. DECLARE FUNCTION ObtainSemaphoreShared( STRUCTPTR sigSem ) LIBRARY exec
  148. /*------ even more memory support -------------------------------------*/
  149. DECLARE FUNCTION APTR AllocVec(  LONGINT byteSize,  LONGINT requirements ) LIBRARY exec
  150. DECLARE FUNCTION FreeVec( APTR memoryBlock ) LIBRARY exec
  151. /*------ V39 Pool LVOs...*/
  152. DECLARE FUNCTION APTR CreatePool(  LONGINT requirements,  LONGINT puddleSize, \
  153.                                    LONGINT threshSize ) LIBRARY exec
  154. DECLARE FUNCTION DeletePool( APTR poolHeader ) LIBRARY exec
  155. DECLARE FUNCTION APTR AllocPooled( APTR poolHeader,  LONGINT memSize ) LIBRARY exec
  156. DECLARE FUNCTION FreePooled( APTR poolHeader, APTR memory,  LONGINT memSize ) LIBRARY exec
  157. /*------ misc ---------------------------------------------------------*/
  158. DECLARE FUNCTION LONGINT AttemptSemaphoreShared( STRUCTPTR sigSem ) LIBRARY exec
  159. DECLARE FUNCTION ColdReboot() LIBRARY exec
  160. DECLARE FUNCTION StackSwap( STRUCTPTR newStack ) LIBRARY exec
  161. /*------ task trees ---------------------------------------------------*/
  162. DECLARE FUNCTION ChildFree( APTR tid ) LIBRARY exec
  163. DECLARE FUNCTION ChildOrphan( APTR tid ) LIBRARY exec
  164. DECLARE FUNCTION ChildStatus( APTR tid ) LIBRARY exec
  165. DECLARE FUNCTION ChildWait( APTR tid ) LIBRARY exec
  166. /*------ future expansion ---------------------------------------------*/
  167. DECLARE FUNCTION APTR CachePreDMA( APTR _ADDRESS, ADDRESS length,  LONGINT flags ) LIBRARY exec
  168. DECLARE FUNCTION CachePostDMA( APTR _ADDRESS, addresslength,  LONGINT flags ) LIBRARY exec
  169. /*------ NEW, FOR V39*/
  170. /*--- functions in V39 OR higher (Release 3) ---*/
  171. /*------ Low memory handler functions*/
  172. DECLARE FUNCTION AddMemHandler( STRUCTPTR memhand ) LIBRARY exec
  173. DECLARE FUNCTION RemMemHandler( STRUCTPTR memhand ) LIBRARY exec
  174. /*------ FUNCTION TO attempt TO obtain a Quick Interrupt Vector...*/
  175. /*DECLARE FUNCTION LONGINT ObtainQuickVector( APTR interruptCode ) LIBRARY exec*/
  176. #endif   /* FUNCS_EXEC_FUNCS_H */
  177.